/**
 * 系统用户查看js
 */
var chgLogProdPayBackLook = {
	key:"ChgLog_key_",
	dataCache : null,

	startEvent : function() {
		chgLogProdPayBackLook.showInfoById();
	},

	showInfoById : function() {
		var id= art.dialog.data('lokId'); // 修改id
		
		var key = chgLogProdPayBackLook.key + id;
		var record = eval('(' + localStorage.getItem(key) + ')');

		var beforeImage =eval('(' +  record.beforeImg+ ')');

		var afterImage =eval('(' +  record.afterImg+ ')');
		
		for(var i in beforeImage){
			var textBf=beforeImage[i];
			var textAf=afterImage[i];

			$('#com-addForm td[name="'+i+'"]').html(textBf);
			$('#com-addForm td[name="'+i+'Af"]').html(textAf);


			if(textAf !=textBf){
				$('#com-addForm td[name="'+i+'Ch"]').html("已修改");
			}
		}
	},

	init : function() {
		chgLogProdPayBackLook.startEvent();
	}
}
$(document).ready(function() {
	chgLogProdPayBackLook.init();
});